WR3385-891K communication driver

 

 

WR3385-891K communication driver is the driver to communicate with LCU WR3385/3386 and N-LIU WRT2000/2040 etc lighting controller of National Co. in Japan.

 

1. Read settings

 

 

<Figure 1> is read setting example of WR3385-891K communication driver.

<Figure 1> Read setting example of WR3385-891K communication driver

Device part of  <Figure 1> input com port( COM1 ), baud rate( 9600 ), parity bit(0), data bit(8), stop bit(1) according to DIP switch which is installed at communication module of WR3385.

Also, input the read interval( default  : 3000 milli second ) and ratio of Polling, Selecting ( default = 5 ) which is classified by comma.

 

Note) Because WR3385-891K communication driver is structured as read at a time, set the read interval as 1000 ~ 3000 mSec and set the ratio of Polling to Selecting as 5 ~ 20.

Also, equipment of WR3385 etc doesn't respond to read command at once, so the read value may not be come into communication memory immediately. (Because structure of equipment responds to command, after time go) 

 

Read schedule for WR3385-891K

1) STATION : 1 ~ 31 LCU number of controller.

2) Data Type : Read command. (Refer to <Table 1>)

D0 : Load monitoring

D1 : Load batch-monitoring,

D4 : Connection transmission equipment class of monitoring,

D6 : Load lighting level batch-monitoring(Step 7),

D7 : Load lighting level monitoring(Step 7),

D8 : Load lighting level batch-monitoring(Step 128),

D9 : Load lighting level monitoring(Step 128),

d0 : ZONE monitoring,

d1 : Each load monitoring(Default read),

d2 : Lighting load monitoring,

d3 : Pattern monitoring,

d4 : Group monitoring,

d6 : Group lighting level monitoring(Step 7),

d7 : Each load lighting level monitoring(Step 7),

d8 : Group lighting level monitoring(Step 128),

d9 : Each load lighting level monitoring(Step 128),

I3 : System status monitoring,

I4 : Local Bus line status monitoring

3) Group Addres to Read : (Refer to <Table 1>)

4) Save Start Address for Communication Server : Saving start address of Communication Server.

5) Read Size : Fixed according to read command. (Refer to <Table 1>)

6) Point Address to Read : Point number of group to read. (Refer to <Table 1>)

 

 

Read schedule example)

READ,  1,   d1,  0,    0,   1,

READ,  1,   d4,  0,   300,  1,

 

<Table 1> is read command and contents for WR3385-891K communication driver.

Read Command Contents Group No Point No

State Value

Remarks
D0 read of Load status 1 ~ 72 1 ~ 30

0 : OFF,

1 : ON,

2 : half ON 1 in Timer,

3 : half ON 2 in Timer,

80h : Point error

 

D1 read of Load batch-monitoring -

status value display only exist point

 among 1 ~ 30

D4 Connection transmission equipment by class - -

0 : WRT2000K series

1 : WRT2040 series

 

D6 Load lighting batch- monitoring as 7 level 1 ~ 72 -

0 : OFF ( not exist T/U  )

1 ~ 7 : Level 1 ~ 7,

8000h : Point abnormality

relay load : always 0

batch-monitoring : status value display

only exist point among 1 ~ 30

D7 Load lighting monitoring as 7 level 1 ~ 30
D8 Load lighting batch-monitoring as 128 level -

0 : OFF ( not exist T/U )

1 ~ 80h : Level 1 ~ 128,

8000h : Point abnormality

D9 Load lighting monitoring as 128 level 1 ~ 30
d0 read of ZONE status - -

0 : undefined,

1 : all ON,

2 : OFF,

3 : half ON 1,

4 : half ON 2

40h : undefined,

80h : Point abnormality

 36 x 5 = 180 status value

d1 read of Each load - -

1 : OFF,

2 : ON,

3 : delay or temp.,

4 : not exist T/U,

5 : Abnormality occurring

status value for 64 T/U

( 1 T/U : 4 relay,

 ( 64 x 4 = 256 status value )

d2 read of Lighting load - -

equal to Load monitoring data,

illumination

0 : OFF ( not exost T/U )

1 ~ 7 : Level 1 ~ 7,

8000h : Point abnormality

64 channel status value,

iIllumination level,

¡¦

 

( 64 x 2 = 128 status, illumination )

d3 read of Pattern - -

1 : OFF,

2 : ON,

3 : undefined

36 x 2 = 72 pattern status value

d4 read of Group status - -

1 : OFF,

2 : ON,

3 : delay or temp.

4 : undefined

32 x 4 = 128 group status value

d6 Group lighting monitoring as 7 level - -

0 : OFF ( not exist T/U )

1 ~ 7 : Level 1 ~ 7

128 iIllumination level value

d7 Each lighting monitoring as 7 level - -

256 iIllumination level

d8 Group lighting monitoring as 128 level 0 ~ 3 -

0 : OFF ( not exist T/U )

1 ~ 80h : Level 1 ~ 128

32 iIllumination level value

0 Group : 1 ~ 32,

1 Group : 33 ~ 64,

2 Group : 64 ~ 96,

4 Group : 97 ~ 128

d9 Each lighting monitoring as 128 level -

64 iIllumination level value

0 Group : 0-1 ~ 15-4,

1 Group : 16-1 ~ 31-4,

2 Group : 32-1 ~ 47-4,

4 Group : 48-1 ~ 63-4

I3 read of System status - -

7 status value

RS-232C status,

local bus status,

Unit status,

I/F status,

status1 ~ status3

I4 read of Local bus line status - -

0 : normal

1 : Line abnormality

31 line status value for

1 ~ 31 LCU

<Table 1> Read command and contents for WR3385-891K communication driver

If you click the icon  in protocol option part, you can see the dialog box such as <Figure 2>. you can also set read schedule by using this part. 

<Figure 2> Example of WR3385-891K communication driver¡¯s Option dialog box

You can set read schedule by using , , button and listbox of <Figure 2>. 

Also, you can set read interval and ratio of Polling, Selecting  by using the part of ¡®Read Period, Polling, Selecting Ratio' shown in <Figure 2>.

<Figure 3> Example of WR3385-891K communication driver¡¯s read schedule Add/Edit dialog box

When you click Add button or Edit button in dialog box of <Figure 2>, dialog box of <Figure 3> is shown.

 

2. Write settings

You can control WR3385-891K controller by using write settings.

 

Digital Write

Digital write and analog write have the same setting parameters except output value.

 

Write example 1)

PORT:0,  station:1, ADDRESS:0058, Extra1: C0,  Extra2 : 15

The setting parameter shown above is relay control( On/Off ) example for 15 point, 58 group, 1 LCU WR3385 lighting controller.

 

Write example 2)

PORT:0,  station:1, ADDRESS:0060, Extra1: C0,  Extra2 : 1

The setting parameter shown above is relay control( On/Off ) example for 1 point, 60 group, 1 LCU WR3385 lighting controller. ( example of group 1 )

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             1 ~ 31 LCU number of controller.

3)  ADDRESS           writing group address = 1 ~ 72.

4) Extra1                    read/write command. ( refer to <Table 2> )

C0 : load control,

c0 : load control for Global,

c7 : setting of iIllumination level,

C7 : iIllumination level Up,Down control,

c1 : extension setting request for pattern, group data ( level 7 ),

c2 : extension setting request for pattern, group data ( level 128 ),

c8 : setting request for pattern, group data,

f8 : reading request for pattern, group data,

N5 : level1 On control request when blackout,

N3 : level1 Off control request when blackout,

N6 : level2 On control request when blackout,

N4 : level2 Off control request when blackout,

r0 : Clear Command 1,

r1 : Clear Command 2,

r3 : execution Command,

r6 : Unit re-execution Command,

other 2 character : execution of default command. 

5) Extra2                    1 ~ 30 writing point number.

 

<Table 2> is write command and paramters for WR3385-891K communication driver.

 

 

Write command Contents Address
(Group No)
Extra2
(Point No)

Output value

Remarks

C0 load control ZONE control 1 ~ 38 1 ~ 30

0 : Off,

1 : On.

2 : half On 1,

3 : half On 2,

Group 38 :

Point No = only exist 1 ~ 6

    indivisual load control 50 ~ 58

0 : OFF,

1 : ON

Group 58 :

Point No = only exist 1 ~ 16

    iIllumination load control 59 1 ~ 16

 

    group control 60 ~ 64 1 ~ 30

Group 64 :

Point No = only exist 1 ~ 7

    pattern control 70 ~ 72

1 : ON

( only On control)

Group 72 :

Point No = only exist 1 ~ 12

c0 loac control for Global 1 ~ 72 1 ~ 30

0 : all Off,

1 : all On,

2 : half On 1,

3 : half On 2

load control according to

output value for the setting LCU

c7 setting of iIllumination level - 1 ~ 16

1 ~ 7 : ·¹º§

iIllumination level setting for 1 ~ 16 T/U

C7 iIllumination level UP,DOWN control 59 1 ~ 16

0 : stop,

1 : Up,

2 : Down

 

c1 extension setting request for pattern, group data ( level 7 ) 70 ~ 72,
60 ~ 64
1 ~ 30

xxx filename

work folder\SCAN\DATA_xxx.INI

c2 extension setting request for pattern, group data ( level 128 )
c8 setting/reading request for pattern, group data refer to <Table 5>, <Table 6>
f8
N5, N3 level1 On/Off control request when blackout ON/OFF - -

 

 

N6, N4 level2 On/Off control request when blackout

 

 

r0, r1 Clear1, Clear2 Command

 

 

r3, r6 execution, Unit re-execution Command

 

 

<Table 2> Write command and paramters for WR3385-891K communication driver

Setting data input method for Pattern, Group

1. Input all data by decimal unit.

2. Each argument is a comma-delimited.

3. Input all data at 1st line.

4. Refer to <Table 3> for input data.

 

<Table 3> is setting data input method for extension Pattern, extension Group.

<Table 4> is setting value and order for delay setting data.

 

Write command Contents Packet no.

Data order

Data value

c1 extension setting
request for pattern,
group data ( level 7 )
0

packet no. ( 0 ),

256 indivisual status data,

iIllumination setting status 1, level1, ¡¦.

iIllumination setting status 16, level16

packet no. = 0,

 indivisual status data =  1 : Off, 2 : On,

3 : delay or temp., 4 : Area ...,

iIllumination setting status = equal to indivisual status data,

iIllumination level : 0 : invalid, 1 ~ 7 : level

1

packet no. ( 1 ),

32 delay setting data,

1 Fade setting,

256 indivisual level setting data

packet no. = 1,

 delay setting data = refer to <Table 4>,

Fade setting = 0 : none, 1 : 3second, 2 : 6second, 3: 1minute, 

indivisual setting data = 0 : not exist T/U, 1 ~ 7 : level 1 ~ 7

c2 extension setting
request for pattern,
group data ( level 128 )
0

packet no. ( 0 ),

256 indivisual status data,

iIllumination setting status 1, level1, ¡¦.

iIllumination setting status 16, level16

packet no. = 0,

 indivisual status data =  1 : Off, 2 : On,

3 : delay or temp., 4 : Area ...,

iIllumination setting status = equal to indivisual status data,

iIllumination level : 0 : invalid, 1 ~ 7 : level

1

packet no. ( 1 ),

32 delay setting data,

1 Fade setting,

64 indivisual level setting data

packet no. = 1,

 delay setting data = refer to <Table 4>,

Fade setting = 0 : none, 1 : 3second, 2 : 6second, 3: 1minute, 

indivisual setting data = 0 : not exist T/U, 1 ~ 128 : level 1 ~ 128

2, 3, 4

packet no. ( 2 or 3 or 4 ),

64 indivisual level setting data

packet no. = 2 or 3 or 4

indivisual setting data = 0 : not exist T/U, 1 ~ 128 : level 1 ~ 128

<Table 3> Setting data input method for extension Pattern, extension Group

Data order

Setting value

delay 1-1

0 Bit : delay ( 1 ) or delay ( 0 ),

3 Bit : iIllumination ( 1 ) or indivisual ( 0 ),

4 Bit : exist delay setting ( 1 ) or not exist ( 0 ),

5 ~ Bit : don't use

delay 1-2

0 ~ 2 Bit : time,  0, 6, 7 = 1second, 1 = 30second, 2 = 1minute, 3 = 5minute,

4 = 1hour ( only temporary On ), 5 = 2hour ( only temporary On )

4 ~ 5 Bit : 0 ~ 3 switch number 0 ~ 3 ( iIllumination = 0 ),

5 ~ Bit : don't use

delay 1-3

0 ~ 3 Bit : higher digit of channel number = 0 ~ 9,

( indivisual = 0 ~ 63, iIllumination = 0~ 15 )

4 ~ Bit : don't use

delay 1-4

0 ~ 3 Bit : lower digit of channel number = 0 ~ 9,

( indivisual = 0 ~ 63, iIllumination = 0~ 15 )

4 ~ Bit : don't use

¡¦

¡¦

delay 8-4

¡¦

<Table 4> Setting value and order for delay setting data

<Table 5> is setting data input method for Pattern, Group.

<Table 6> is setting or reading value and order for c8, f8 write command.

 

 

Write command Contents Address
(Group No)
Extra2(Point No)

Getting method of Writing value

Range of Output value Remarks
c8 setting request
for pattern, group data
70 ~ 72,  170 ~ 172
(pattern)
60 ~ 64,  160 ~ 164
(group)
1 ~ 30

Address < 100  :

work folder\SCAN\DATA_xxx.INI

 

Address >= 100 : WORD memory

xxx address

( xxx = output value )

 0 ~ 9999

Select according to Address
'file number or WORD memory'
Address > 100 :
Group number =
Address-100
f8 reading request
for pattern, group data
 
<Table 5> Setting data input method for Pattern, Group

Data order

Setting value

256 indivisual status data,

iIllumination setting status 1, level1, ¡¦.

iIllumination setting status 16, level16,

32 delay setting data

 indivisual status data =  1 : Off, 2 : On,

3 : delay or temp., 4 : Area ...,

iIllumination setting status = equal to indivisual status data,

iIllumination level : 0 : invalid, 1 ~ 7 : level,

delay setting data = refer to <Table 4>

<Table 6> Setting or reading value and order for c8, f8 write command

Write example 1)

PORT:0,  station:1, ADDRESS:0058, Extra1: C0,  Extra2 : 16

The setting parameter shown above is relay control( On/Off ) example for 16 point, 58 group, 1 LCU WR3385 lighting controller.

 

Write example 2)

PORT:0,  station:1, ADDRESS:0060, Extra1: C0,  Extra2 : 5

The setting parameter shown above is relay control( On/Off ) example for 5 point, 60 group, 1 LCU WR3385 lighting controller. ( example for 5 group )

 

 

Write example 3)

PORT:0,  station:1, ADDRESS:0060, Extra1: f8,  Extra2 : 1, Output value = 3

The setting parameter shown above is group data reading example for 1 point, 60 group, 1 LCU WR3385 lighting controller.

After reading, the readed value of

'256  indivisual status data +

iIllumination setting status 1, level1, ¡¦. iIllumination setting status 16, level16 +

32 delay setting data' 

save at ¡®work folder\SCAN\DATA_003.INI¡¯ file. ( save after 3 ~ 4 seconds when 'read OK'¡¦ )

 

Write example 4)

PORT:0,  station:1, ADDRESS:0060, Extra1: c8,  Extra2 : 1, Output value = 3

The setting parameter shown above is group data setting example for 1 point, 60 group, 1 LCU WR3385 lighting controller.

The setting value for group read from ¡®work folder\SCAN\DATA_003.INI¡¯ file.  ( setting data = refer to <Table 6>, group data setting complete wrte ( OK ) after about 20 seconds¡¦ )

 

Write example 5)

PORT:0,  station:1, ADDRESS:0160, Extra1: f8,  Extra2 : 1, Output value = 5000

The setting parameter shown above is group data reading example for 1 point, 60 group, 1 LCU WR3385 lighting controller.

After reading, the readed value of

'256  indivisual status data +

iIllumination setting status 1, level1, ¡¦. iIllumination setting status 16, level16 +

32 delay setting data' 

save from 5000 WORD memory. ( save after 3 ~ 4 seconds when 'read OK'¡¦ )

 

Write example 6)

PORT:0,  station:1, ADDRESS:0160, Extra1: c8,  Extra2 : 1, Output value = 5000

The setting parameter shown above is group data setting example for 1 point, 60 group, 1 LCU WR3385 lighting controller.

The setting value for group read from 5000 WORD memory.  ( setting data = refer to <Table 6>, group data setting complete wrte ( OK ) after about 20 seconds¡¦ )

 

3. Connection of main power and communication cable

Connection of main power and communication cable are as follows:

 

Connection of main power

Please connect 24V AC to mainpower connector such as <Figure 4>.

<Figure 4> Connection example of main power and communication cable to WR3385-891K controller

 

Connection of communication cable

Please connect normal  ( full wiring ) RS-232C communication cable to 25 pin connector of NIC module such as <Figure 4>.

 

Note) Please connect normal ( full wiring ) RS-232C communication cable to communicate with WR3385 controller. ( refer to WR3385 user manual )

Also, can connect normal RS-232C communication cable to 9pin connector( Setting Unit ).

The baud rate, ... of 9 pin connector are fixed to 9600, 2, 7, 1.

 

<Figure 5> is connection example of main power and relay, etc to WR3385-891K controller.

<Figure 5> Connection example of main power and relay, etc to WR3385-891K controller

 

4. Setting of baud rate, LCU address

Setting of baud rate and LCU address for WR3385-891K NCU or WR3385-891K can set by DIP switch such as <Table 7>, <Table 8>.

 

Switch DIP No. Contents I O
SW1 SW 1SW 2SW 3 Baud Rate 57600 1200 2400 4800 9600 19200 38400 57600
O I O I O I O I
O O I I O O I I
O O O O I I I I
SW 4 data bit 8 Bit 7 Bit
SW 5 Parity ODD ( 1 ) EVEN ( 2 )
SW 6 use of parity NO YES
SW 7   19200 BPS 9600 BPS
<table 7> DIP switch and setting contents for WR3385-891K NCU
Switch DIP No. Contents I O
SW1 SW 1 Address 1 ON OFF
SW 2 Address 2
SW 3 Address 4
SW 4 Address 8
SW 5 Address 16
SW 6 don't use - -
SW 7 baud rate 19200 BPS 9600 BPS
SW 8 controller type WRT2040 WRT2000K
<table 8> DIP switch and setting contents for WR3385-891K